////////////////////////////////////////
// Flight.cpp
// class 'Flight' defines a flight in the flight reservation system

#include <iostream>
#include "Flight.h"
using namespace std;

////////////////////////////////////////

Flight::Flight()
: airline(""), flightNum(-1), orig(""), dest(""),
  price(0.0), seats(0)
{
}

Flight::~Flight()
{
}

////////////////////////////////////////
// mutator functions

void Flight::set_airline(const string & a)
{
    airline = a;
}

void Flight::set_flightNum(int n)
{
    flightNum = n;
}

void Flight::set_orig(const string & o)
{
    orig = o;
}

void Flight::set_dest(const string & d)
{
    dest = d;
}

void Flight::set_price(float p)
{
    price = p;
}

void Flight::set_seats(int s)
{
    seats = s;
}

void Flight::set(const string & a, int n, 
    const string & o, const string & d, float p, int s)
{
    airline = a;
    flightNum = n;
    orig = o;
    dest = d;
    price = p;
    seats = s;
}

////////////////////////////////////////
// accessor functions

string Flight::get_airline() const
{
    return airline;
}

int Flight::get_flightNum() const
{
    return flightNum;
}

string Flight::get_orig() const
{
    return orig;
}

string Flight::get_dest() const
{
    return dest;
}

float Flight::get_price() const
{
    return price;
}

int Flight::get_seats() const
{
    return seats;
}

